import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

export function list(query) {
  return request({
    url: '/system/faq/list',
    method: 'get',
    params: query
  })
}

export function toUpdate(id) {
  return request({
    url: '/system/faq/toUpdate/' + parseStrEmpty(id),
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/system/faq/add',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/system/faq/update',
    method: 'post',
    data: data
  })
}

export function del(data) {
  return request({
    url: '/system/faq/del',
    method: 'post',
    data: data
  })
}
export function show(data) {
  return request({
    url: '/system/faq/show',
    method: 'post',
    data: data
  })
}

export function hide(data) {
  return request({
    url: '/system/faq/hide',
    method: 'post',
    data: data
  })
}
